package com.example.powersystem.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.powersystem.pojo.Tower;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface TowerMapper extends BaseMapper<Tower> {

@Select("select * from tower")
    List<Tower> selectAll();

List<Tower> selectByLineAndStatus(@Param("belong_line")String belong_line, @Param("state")Integer state);
}
